jQuery(document).ready(function(){
    jQuery( "#submission_date_from" ).datepicker({
        dateFormat: "dd M yy",
        onClose: function( selectedDate ) {
            jQuery( "#submission_date_to" ).datepicker( "option", "minDate", selectedDate );
        }
    });
    jQuery( "#submission_date_to" ).datepicker({
        dateFormat: "dd M yy",
        onClose: function( selectedDate ) {
            jQuery( "#submission_date_from" ).datepicker( "option", "maxDate", selectedDate );
        }
    });
    jQuery( "#relocation_effective_date" ).datepicker({
        dateFormat: "dd M yy",
        onClose: function( selectedDate ) {
            jQuery( "#relocation_effective_date_to" ).datepicker( "option", "minDate", selectedDate );
        }
    });
    jQuery( "#relocation_effective_date_to" ).datepicker({
        dateFormat: "dd M yy",
        onClose: function( selectedDate ) {
            jQuery( "#relocation_effective_date" ).datepicker( "option", "maxDate", selectedDate );
        }
    });
});


